<?php
require_once('../lib/standard.php');
set_pineza();
check_login();

if ((!perastike('note')) || (!$_REQUEST['note'])) telos('no note passed');
else $note = $_REQUEST['note'];

if ((!perastike('priority')) || (!$_REQUEST['priority'])) telos('no priority passed');
else $priority = $_REQUEST['priority'];

print $priority;
$query = "UPDATE `note` SET `priority` = '" . escape($priority) .
	"' WHERE `key` = " . escape($note) . " LIMIT 1";
mysqli_query($pineza->db, $query);

$pineza->close_database();
print AJAX_SEP;
?>
